package com.service.yzj.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.service.yzj.model.custom.CustomAddressInfo;
import com.service.yzj.model.order.OrderAppointmentDetail;
import com.service.yzj.model.order.OrderDetail;
import com.service.yzj.model.order.OrderLog;
import com.service.yzj.model.user.Employee;


@Mapper
public interface COrderMapper {
    OrderDetail getOrderWithUser(long userId);
    OrderDetail getOrderDetailById(long orderId);
    List<OrderDetail> getOrderListWithUser(long userId);
    List<OrderDetail> getOrderListWithKeywords(
        int offset,
        int pageSize,
        String orderNo,
        String customName,
        String customTelephone,
        String customResidentialQuarter,
        String customSquare,
        String server
    );

    List<OrderLog> getOrderLogsByOrderId(long orderId);

    OrderAppointmentDetail getAppointmentDetailWithOrderId(long orderId);

    Employee getWorkerWithId(long employeeId);

    // 根据 ID 查询地址信息
    CustomAddressInfo getAddressById(long id);

    // 查询所有地址信息
    List<CustomAddressInfo> getAllAddresses();
}
